//
//  HBBaseRefreshController.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import "HBBaseListViewController.h"
#import "HBBaseRefreshRequest.h"
NS_ASSUME_NONNULL_BEGIN
@protocol RefreshResultProtocol <NSObject>
@optional
@property (nonatomic, strong) NSMutableArray *dataArray;
- (void)benginRefresh;
- (void)refreshData;
- (void)loadMoreData;
- (void)loadSuccessWithArray:(NSArray *)array isRefresh:(BOOL)isRefresh;
- (void)loadFailedWithError:(NSError *)error;
- (void)loadCompleteWithArray:(NSArray *)array;
@end
@interface HBBaseRefreshController : HBBaseListViewController <RefreshResultProtocol>
@property (nonatomic, strong) HBBaseRefreshRequest *request;
- (MJRefreshAutoNormalFooter *)refreshFooter;
- (void)analysisError:(NSError *)error;
@end

NS_ASSUME_NONNULL_END
